import React, { useState } from 'react';
// @ts-ignore 1
import { Tree } from 'abc-ui';

export default () => {
  const treeData = [
    {
      title: 'nihao1',
      key: 1,
      children: [
        {
          level: 1,
          levelPath: [1, 2],
          title: 'nihao2',
          key: 2,
        },
      ],
    },
    {
      title: 'nihao3',
      key: 3,
      children: [
        {
          level: 1,
          title: 'nihao4',
          key: 4,
        },
      ],
    },
  ];
  return <Tree treeData={treeData} />;
};
